import React, { PureComponent, Fragment } from 'react';

class Comchild extends PureComponent {
  render() {
    console.log('render');
    return (
      // Fragment 片段，减少冗余标签
      <Fragment>
        <p>父传子：{this.props.name}</p>
      </Fragment>
    );
  }
}

export default Comchild;
